@avalanche/setting-spacings
Spacing sizes.
Install
npm install @avalanche/setting-spacings --save-dev
Basic usage
@import 'node_modules/@avalanche/setting-spacings/scss/index.scss';
@import 'node_modules/@avalanche/setting-spacings/scss/settings';
Using node-sass (or a plugin for Grunt, gulp or webpack which is using node-sass) in combination with the node-sass-magic-importer custom importer, can make importing CSS dependencies from node_modules
a much nicer experience.
@import '~@avalanche/setting-spacings';
Usage
.selector {
margin-top: setting-spacing(m);
}
.selector {
margin-top: map-get($spacings, m);
}
Settings
$spacings: (
xs: 0.5em,
s: 0.75em,
m: 1em,
l: 1.5em,
xl: 2em,
xxl: 3.5em,
xxxl: 6em,
) !default;
About
Author
Markus Oberlehner
Website: https://markus.oberlehner.net
Twitter: https://twitter.com/MaOberlehner
PayPal.me: https://paypal.me/maoberlehner
License
MIT